<div ng-controller="CooperationCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/cooperation/list">{{'partnership'| translate}}{{'List'|translate}}</a></li>
        <li class="active">
            {{"List"|translate}}
            <a href="#/cooperation/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'id'|translate}}"  ng-model="id">
          <input type="text"  placeholder="{{'keyword'|translate}}"  ng-model="keyword">
          <button class="sui-btn btn-primary" type="submit" ng-click="getCooperationList()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'product_line_name'|translate}}</th>
                <th>{{'distributor_nick'|translate}}</th>
                <th>{{'distribution_ways'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in cooperations">
                <td>{{list.cooperate_id}}</td>
                <td>{{list.product_line_name}}</td>
                <td>{{list.distributor_nick}}</td>
                <td>
                	<trade-type ng-model="list.trade_type" stype="1">
                </td>
        
                <td>
                    <a href="#/cooperation/add?cooperate_id={{list.cooperate_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                    <a href="#/cooperation/info?cooperate_id={{list.cooperate_id}}" class="sui-btn btn-primary">{{'info'|translate}}</a>
                    <a ng-click="cooperationDelete(list.cooperate_id)" class="sui-btn btn-danger">{{'delete'|translate}}</a>
                    <a  ng-show="!list.supplier_agree" ng-click="empower(list)" class="sui-btn btn-warning">{{'同意授权'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="cooperationsTotal" get-data="getCooperationList(pageNo)"></pager>
    <!-- 分页end -->
</div>
